package src.com.db.httpserver;

import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;

public class ClientThread implements Runnable{
	public void run(){
		try{
			
			Socket s=new Socket("127.0.0.1",8080);
			 System.out.println("In client");
		     final PrintStream ps = new PrintStream(s.getOutputStream(), true);
		     ps.print("GET /path/resource?param1=value1&param2=value2 HTTP/1.1");
			
		} catch (IOException e){
			System.out.println("IOException on client");
		}
	}
}
